import request from "../../utils/request";


// 充值模板分页查看方法
export function searchModules(data) {
    return request({
        url: '/book-biz-service/admin/v1/recharge/query-recharge-page',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

//创建充值模板
export function addModules(data) {
    return request({
        url: '/book-biz-service/admin/v1/recharge/create-recharge',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}


//更新充值模板
export function updateModules(data) {
    return request({
        url: '/book-biz-service/admin/v1/recharge-item/update-recharge-item',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

//删除充值模板
export function deleteModules(id) {
    return request({
        url: '/book-biz-service/admin/v1/recharge-item/del-recharge-item',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'delete',
        data: id
    })
}
